package mvcdemo;

import org.springframework.stereotype.Service;

/**
 * Created by zc on 2017/6/10.
 */
@Service
public class CourseService {
    public Course getCoursebyId(Integer courseId) {
        if(courseId.equals(1)){
            Course course=new Course();
            course.setCourseId(1);
            course.setDesc("这是一个课程");
            return course;
        }else {
            return null;
        }

    }
}
